package org.NooLab.openNLP.sources;

import org.NooLab.openNLP.grammar.ConjugationHarvesterIntf;
import org.NooLab.openNLP.grammar.VerbConjugationStorage;
import org.NooLab.utilities.strings.ArrUtilities;
import org.NooLab.utilities.files.DFutils;
import org.NooLab.utilities.logging.PrintLog;
import org.NooLab.utilities.strings.StringsUtil;



/**
 * 
 * so far only available in German
 * 
 * 
 */
public class WictionaryConjugationHarvester implements ConjugationHarvesterIntf{

	

	
	// object references ..............

	VerbConjugationStorage conjugationTablesStorage;
	WiktionaryPageParser wiktioParser;
	
	// main variables / properties ....
	String linguisticsProviderUrl = "http://conjd.cactus2000.de/";
	String requestpage ="/wiki/[[word]]_(Konjugation)";
	
	String configPath;
	
	// volatile variables .............

	
	
	// helper objects .................

	DFutils fileutil = new DFutils();
	ArrUtilities arrutil = new ArrUtilities();
	StringsUtil strgutil = new StringsUtil();
	protected PrintLog out ;

	 
	
	// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
	public WictionaryConjugationHarvester( String lang, String basepath,String pathext, VerbConjugationStorage vcs, PrintLog outprn ){
		configPath = basepath;
		wiktioParser = new WiktionaryPageParser( lang, basepath,pathext, vcs,outprn);
		
	}  

	
	
	 
	public void setLinguisticsProviderUrl( String linguisticsProviderUrl,
										   String requestpage, 
										   int requestmode) {
	 
		
	}

	 
	public int retrieveConjugationTableFromWeb(String wordlabel) {
		 
		
		return -111;
	}

	 
	public int assimilateVerb(String wordlabel, int adjustIdiomSpelling) {
		 
		
		return -1;
	}




	public String getLinguisticsProviderUrl() {
		return linguisticsProviderUrl;
	}




	public void setLinguisticsProviderUrl(String linguisticsProviderUrl) {
		this.linguisticsProviderUrl = linguisticsProviderUrl;
	}




	public String getRequestpage() {
		return requestpage;
	}




	public void setRequestpage(String requestpage) {
		this.requestpage = requestpage;
	}

}
